Added lcdClear and lcdPrint CLI functions#107
Added lcdClear and lcdPrint CLI functions#107etomzak wants to merge 2 commits intokiibohd:masterfrom
Conversation
|
Oh, neat! |
|
I'm happy to make changes, additions, code style tweaks, etc. There's so much that could be done with displaying text. I just tried to implement the absolute bare minimum. |
Scan/STLcd/lcd_scan.c
Outdated
| LCD_writeControlReg( 0x00 ); | ||
|
|
||
| // See SPI_write() | ||
| for ( unsigned int i = 0; i < 128; ++i) |
There was a problem hiding this comment.
Please use uint8_t/uint16_t/uint32_t.
|
I've fixed the code style issues. A systematic way for converting fonts sounds like a great idea. I hand-converted this first set of characters to have something to display, but it really isn't a sustainable way of doing it. A couple of things I was thinking of when I was putting this together:
I might be up for contributing some font conversion code. It could be the reason I need to finally learn python :P |
lcdPrint prints text to the display. Printing based on character codes is supported. lcdClear clears the display.